package com.eedi.framework.template.controller.sys.vo.menu;

import com.eedi.framework.template.enums.SysTemplateMenuTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "系统界面 - 菜单精简信息 Response VO")
@Data
public class SysTemplateMenuSimpleResp {

    @Schema(description = "菜单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private String sysTemplateMenuId;

    @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "永聚长青")
    private String sysMenuName;

    @Schema(description = "父菜单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private String parentSysMenuId;

    @Schema(description = "类型，参见 MenuTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private SysTemplateMenuTypeEnum sysMenuType;

    /**
     * 显示顺序
     */
    @Schema(description = "现实顺序")
    private Integer sysMenuSort;

    /**
     * 路由地址
     *
     * 如果 path 为 http(s) 时，则它是外链
     */
    @Schema(description = "路由地址")
    private String sysMenuPath;

    @Schema(description = "子菜单")
    private List<SysTemplateMenuSimpleResp> children;

}
